package com.tuyrt.hi.hiitem.hiitem

import android.view.View
import android.widget.ImageView
import androidx.recyclerview.widget.RecyclerView
import com.tuyrt.hi.hiitem.R

/**
 * author: Administrator on 2021/6/1.
 * desc:
 */
class ItemTabDataItem(data: ItemData) : HiDataItem<ItemData, ItemTabDataItem.MyHolder>(data) {

    class MyHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {
        var imageView: ImageView = itemView.findViewById(R.id.item_image)
    }

    override fun getItemLayoutRes(): Int {
        return R.layout.layout_list_item_tab
    }

    override fun onBindData(holder: MyHolder, position: Int) {
        holder.imageView.setImageResource(R.drawable.item_tab)
    }
}